﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebInvoicingsys.system.report.storageAnalysis
{
    public partial class Storagestock : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ;
            }
        }

        //查询
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string warehouseid = uc_search_warehouse.getValue();
            string areaid = uc_search_area.getValue();
            string storageid = txt_storageid.Text.Trim();

            string url = "/system/report/storageAnalysis/Storagestock_list.aspx?warehouseid={0}&areaid={1}&storageid={2}";

            url = String.Format(url, warehouseid, areaid, storageid);

            Response.Redirect(url);
        }

        //仓库选择
        protected void uc_search_warehouse_OnbtSelect_Click(object sender, EventArgs e)
        {
            string warehouseid = uc_search_warehouse.getValue();

            if (String.IsNullOrEmpty(warehouseid))
            {
                return;
            }

            uc_search_area.setArea(warehouseid);
        }
    }
}